package main

import (
	"e-wallet/account"
	"e-wallet/flow_type"
	"e-wallet/record"

	"github.com/gin-contrib/cors"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.Use(cors.Default())
	api := r.Group("/api")
	account.RegisterRoute(api)
	record.RegisterRoute(api)
	flow_type.RegisterRoute(api)
	r.Run(":3002")
}
